﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("RG")]
    public class RG
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long Id { get; set; }

        [MaxLength(50)]
        [Required]
        public String Numero { get; set; }

        [MaxLength(120)]
        [Required]
        public String OrgaoExpeditor { get; set; }

        [Required]
        public long EstadoExpeditor { get; set; }

        public Nullable<DateTime> DataExpedicao { get; set; }
    }
}